<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8"/>
    <title>Richzoo 众筹</title>
    <meta name="keywords" content=""/>
    <meta name="description" content=""/>
    <meta name="viewport" content="width=device-width"/>
    <link rel="stylesheet" href="/style/home/bootstrap.css"/>
    <link rel="stylesheet" href="/style/home/common.css"/>
    <link rel="stylesheet" href="/style/home/jquery.validator.css"/>
    <link rel="stylesheet" href="/javascript/home/webuploader/webuploader.css"/>
    <script type="text/javascript" src="/javascript/home/jquery-1.11.1.min.js"></script>
    <script type="text/javascript" src="/javascript/home/bootstrap.min.js"></script>
    <script type="text/javascript" src="/javascript/home/jquery.validator.js"></script>
    <script type="text/javascript" src="/javascript/home/zh_CN.js"></script>
    <script type="text/javascript" src="/javascript/home/webuploader/webuploader.min.js"></script>
    <script type="text/javascript" src="/javascript/home/esl.js"></script>
    <!--[if lte IE 6]>
    <link rel="stylesheet" href="/style/home/bootstrap-ie6.css">
    <![endif]-->
    <!--[if lte IE 7]>
    <link rel="stylesheet" href="/style/home/ie.css">
    <![endif]-->
    <!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
    <!--[if lt IE 9]>
    <script src="/javascript/home/html5.js"></script>
    <script src="/javascript/home/respond.min.js"></script>
    <![endif]-->
    <link rel="shortcut icon" href="/images/home/favicon.ico"/>
    <link rel="apple-touch-icon" href="/images/home/touchicon.png"/>
</head>
<body>
<!--header-->
<div class="top-header">
    <div class="clearfix container">
        <!-- >768 nav-->
        <div class="row hidden-xs">
            <div class="logo col-xs-3">
                <a href="/">
                    <img src="<?php echo ($config["SITE_LOGO"]); ?>" class="col-xs-12"/>
                </a>
            </div>
            <div class="wrap-nav col-xs-6">
                <ul class="clearfix" id="nav-list">
                    <li>
                        <a href="/">首页</a>
                    </li>
                    <li class="dropdown">
                        <a href="#" class="dropdown-toggle" data-toggle="dropdown">项目浏览<i class="icon-chevron-down">向下</i> </a>
                        <ul class="dropdown-menu" role="menu">
                            <?php if(is_array($deal_cate_list)): foreach($deal_cate_list as $key=>$vo): ?><li><a href="/list/?id=<?php echo ($vo["id"]); ?>" title="<?php echo ($vo["name"]); ?>"><?php echo ($vo["name"]); ?></a></li><?php endforeach; endif; ?>
                        </ul>
                    </li>
                    <li class="dropdown">
                        <a href="/user.html" class="dropdown-toggle" data-toggle="dropdown">我的众筹<i class="icon-chevron-down">向下</i> </a>
                        <ul class="dropdown-menu" role="menu">
                            <li><a href="/user.html">我的众筹</a></li>
                        </ul>
                    </li>
                    <li>
                        <a href="/project/add.html">发起项目</a>
                    </li>
                    <li>
                        <a href="/help/about.html">新手帮助</a>
                    </li>
                </ul>
            </div>
            <div class="user col-xs-3">
                <?php if(empty($user["user_name"])): ?><a data-toggle="modal" class="pull-right  " id="reg-btn" onclick="code('.code-reg')" data-target="#reg_dialog">注册</a>
                    <a data-toggle="modal" id="login-btn" onclick="code('.code-login')" class="pull-right mr20" data-target="#login_dialog">登录</a>
                    <?php else: ?>
                    <a href="/user/logout" class="user-name pull-right">退出</a>
                    <a href="/user.html" class="pull-right mr20"><?php echo ($user["user_name"]); ?></a>
                    <!--<div class="user-img visible-lg ">-->
                        <!--<a href="/user.html"><div class="user-img-bg"></div>-->
                            <!--<?php if(empty($user["avatar"])): ?><img src="/images/avatar/noavatar_small.gif" /><?php else: ?><img src="<?php echo ($user["avatar_small"]); ?>" /><?php endif; ?>-->
                    <!--</div>--><?php endif; ?>
            </div>
        </div>
        <!-- <768 nav-->
        <div class="row visible-xs">
            <div class="logo">
                <a href="/">
                    <img src="<?php echo ($config["SITE_LOGO"]); ?>" class="col-xs-4"/>
                </a>
            </div>
            <div class="user col-xs-6 col-xs-offset-2 text-right">
                <?php if(empty($user["user_name"])): ?><a data-toggle="modal" id="reg-btn" onclick="code('.code-reg')" data-target="#reg_dialog">注册</a>
                    <a data-toggle="modal" id="login-btn" onclick="code('.code-login')" class="ml10" data-target="#login_dialog">登录</a>
                    <?php else: ?>
                    <div class="user-img">
                        <a href="/user.html"><div class="user-img-bg"></div>
                            <?php if(empty($user["avatar"])): ?><img src="/images/avatar/noavatar_small.gif" /><?php else: ?><img src="<?php echo ($user["avatar_small"]); ?>" /><?php endif; ?>
                    </div>
                    <a href="/user/logout" class="user-name pull-right" style="line-height: 27px;margin-left: 5px;">退出</a>
                    <a href="/user.html" class="user-name"><?php echo ($user["user_name"]); ?></a><?php endif; ?>
            </div>
        </div>
        <div class="row visible-xs mt5">
            <div class="col-xs-12">
                <ul class="clearfix" id="phone-nav-list">
                    <li class="col-xs-2">
                        <a href="/">首页</a>
                    </li>
                    <li class="dropdown col-xs-3">
                        <a href="#" class="dropdown-toggle" data-toggle="dropdown">项目浏览<i class="glyphicon glyphicon-chevron-down"></i> </a>
                        <ul class="dropdown-menu" role="menu">
                            <?php if(is_array($deal_cate_list)): foreach($deal_cate_list as $key=>$vo): ?><li><a href="/list/?id=<?php echo ($vo["id"]); ?>" title="<?php echo ($vo["name"]); ?>"><?php echo ($vo["name"]); ?></a></li><?php endforeach; endif; ?>
                        </ul>
                    </li>
                    <li class="col-xs-3">
                        <a href="/user.html" class="dropdown-toggle" data-toggle="dropdown">我的众筹<i class="glyphicon glyphicon-chevron-down"></i> </a>
                        <ul class="dropdown-menu" role="menu">
                            <li><a href="/user.html">我的众筹</a></li>
                        </ul>
                    </li>
                    <li class="col-xs-2">
                        <a href="/project/add.html">发起项目</a>
                    </li>
                    <li class="col-xs-2">
                        <a href="/help/list.html">新手帮助</a>
                    </li>
                </ul>
            </div>
        </div>
    </div>
</div>
<!--header end-->
<script type="text/javascript" src="/javascript/region.js"></script>

<div class="main-container">
    <form name="pay" id="pay" method="POST" action="/cart/check/">
    <div class="container">

            <?php if(($deal_item["is_delivery"] == 1)): ?><div class="content pay-item">
                    <h1 class="main-title">确认收货地址</h1>
                    <button class="ui-btn ui-btn-blue ui-btn-mi add-address" id="add-address" data-toggle="modal"
                            data-target="#add_address">+&nbsp;添加新地址
                    </button>
                    <div class="row mt20 form-radio">
                        <table class="table table-bordered add-setting">
                            <thead>
                            <tr>
                                <th>选择</th>
                                <th>收货人</th>
                                <th>所在地区</th>
                                <th>详细地址</th>
                                <th>邮编</th>
                                <th>电话/手机</th>
                                <th>操作</th>
                            </tr>
                            </thead>
                            <tbody>
                                <?php if(is_array($consignee_list)): $i = 0; $__LIST__ = $consignee_list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><tr>
                                        <td><span class="ui-radio <?php if( ($vo['default'] == 1)): ?>selected<?php endif; ?>"><input type="radio" name="consignee_id" value="<?php echo ($vo["id"]); ?>"<?php if(($vo['default'] == 1)): ?>checked<?php endif; ?>></span></td>
                                        <td><?php echo ($vo["consignee"]); ?></td>
                                        <td><?php echo ($vo["province"]); ?>省<?php echo ($vo["city"]); ?>市</td>
                                        <td><?php echo ($vo["address"]); ?></td>
                                        <td><?php echo ($vo["zip"]); ?></td>
                                        <td><?php echo ($vo["mobile"]); ?></td>
                                        <td><a class="ui-btn ui-btn-blue btn-setting-add reset-add " data-id="<?php echo ($vo["id"]); ?>">修改地址</a></td>
                                    </tr><?php endforeach; endif; else: echo "" ;endif; ?>
            </tbody>
            </table>

    </div>
</div><?php endif; ?>
<div class="content pay-item mt20 pt10">
    <h1 class="main-title">确认订单信息</h1>

    <input type="hidden" name="id" value="<?php echo ($deal_item["id"]); ?>">
    <div class="order-info">
        <h1 class="f18 fb"><?php echo ($deal_info["name"]); ?> - <?php echo ($deal_item["title"]); ?></h1>

        <div class="row mb30">
            <label class="col-xs-2">回报内容：</label>

            <div class="col-xs-10">
                <?php echo ($deal_item["description"]); ?>
            </div>
        </div>
        <div class="row mb30">
            <label class="col-xs-2">运费：</label>

            <div class="col-xs-10">
                <?php if(($deal_item["is_delivery"] == 1)): if(($deal_item["delivery_fee"] > 0)): ?>快递费:¥<?php echo (round($deal_item["delivery_fee"],2)); ?>
                        <?php else: ?>
                        全国包邮<?php endif; ?>
                    <?php else: ?>
                    不需物流<?php endif; ?>
            </div>
        </div>
        <div class="row mb30">
            <label class="col-xs-2">预计回报发送时间：</label>

            <div class="col-xs-10">
                项目成功结束后<?php echo ($deal_item["repaid_day"]); ?>天
            </div>
        </div>

        <div class="row mb10">
            <div class="col-xs-12">
                <div class="box-textarea">
                    <textarea name="memo" placeholder="给项目发起人留言"></textarea>
                </div>
            </div>
        </div>
        <div class="text-center mb30">
            <span class="fb">总计金额(元）：</span>
            <span class="total-money"><?php echo ($deal_item["price_format"]); ?></span>
        </div>
        <div class="text-center">
            <a class="ui-btn ui-btn-blue btn-order">提交订单<i class="glyphicon glyphicon-chevron-right ml10"></i> </a>
        </div>
        <script>
            $(function () {
                $(".btn-order").on('click', function () {
                    $('#pay').submit();
                })
            })
        </script>
    </div>

</div>
</form>
<div class="modal fade" id="add_address" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog" id="add_address_dialog">
        <div class="modal-content">
            <a class="ui-btn ui-btn-blue btn-add-close" onclick="window.location.reload()" style="line-height: 35px;">x</a>
            <h1 class="add-header">添加新地址</h1>

            <div class="add-content">
                <div class="add-content-form">
                    <form class="ui-form" id="set-add">
                        <div class="row">
                            <label class="col-xs-2 col-xs-offset-2">收件人：</label>

                            <div class="col-xs-4">
                                <div class="ipt">
                                    <input type="text" name="consignee">
                                    <input type="hidden" name="type" id="address-type"/>
                                    <input type="hidden" name="id" id="add-id"/>
                                </div>
                            </div>
                        </div>
                        <div class="row">
                            <label class="col-xs-2 col-xs-offset-2">手机：</label>

                            <div class="col-xs-4">
                                <div class="ipt">
                                    <input type="text" name="mobile">
                                </div>
                            </div>
                        </div>
                        <div class="row" id="add-dialog">
                            <label class="col-xs-2 col-xs-offset-2">所在地：</label>

                            <div class="ipt col-xs-6">
                                <div class="col-xs-4">
                                    <div class="ui-dropdown">
                                        <input type="hidden" name="province" value="选择省份" class="select-val">
                                        <a class="dropdown-toggle ui-dropdown-btn int-slt-province" type="button"
                                           id="provinceMenu" data-toggle="dropdown">
                                            <span class="dr-text">选择省份</span>
                                            <span class="ui-icon icon-downward-blue2 icon-downward-position"></span>
                                        </a>
                                        <ul class="dropdown-menu dropdown-pri-step province-list" role="menu"
                                            aria-labelledby="provinceMenu">
                                            <li role="presentation" data-val="安徽" rel="3"><a role="menuitem"
                                                                                             tabindex="-1">安徽</a></li>
                                            <li role="presentation" data-val="澳门" rel="396"><a role="menuitem"
                                                                                               tabindex="-1">澳门</a></li>
                                            <li role="presentation" data-val="北京" rel="52"><a role="menuitem"
                                                                                              tabindex="-1">北京</a></li>
                                            <li role="presentation" data-val="福建" rel="4"><a role="menuitem"
                                                                                             tabindex="-1">福建</a></li>
                                            <li role="presentation" data-val="甘肃" rel="5"><a role="menuitem"
                                                                                             tabindex="-1">甘肃</a></li>
                                            <li role="presentation" data-val="广东" rel="6"><a role="menuitem"
                                                                                             tabindex="-1">广东</a></li>
                                            <li role="presentation" data-val="广西" rel="7"><a role="menuitem"
                                                                                             tabindex="-1">广西</a></li>
                                            <li role="presentation" data-val="贵州" rel="8"><a role="menuitem"
                                                                                             tabindex="-1">贵州</a></li>
                                            <li role="presentation" data-val="海南" rel="9"><a role="menuitem"
                                                                                             tabindex="-1">海南</a></li>
                                            <li role="presentation" data-val="河北" rel="10"><a role="menuitem"
                                                                                              tabindex="-1">河北</a></li>
                                            <li role="presentation" data-val="黑龙江" rel="12"><a role="menuitem"
                                                                                               tabindex="-1">黑龙江</a>
                                            </li>
                                            <li role="presentation" data-val="河南" rel="11"><a role="menuitem"
                                                                                              tabindex="-1">河南</a></li>
                                            <li role="presentation" data-val="湖北" rel="13"><a role="menuitem"
                                                                                              tabindex="-1">湖北</a></li>
                                            <li role="presentation" data-val="湖南" rel="14"><a role="menuitem"
                                                                                              tabindex="-1">湖南</a></li>
                                            <li role="presentation" data-val="江苏" rel="16"><a role="menuitem"
                                                                                              tabindex="-1">江苏</a></li>
                                            <li role="presentation" data-val="江西" rel="17"><a role="menuitem"
                                                                                              tabindex="-1">江西</a></li>
                                            <li role="presentation" data-val="吉林" rel="15"><a role="menuitem"
                                                                                              tabindex="-1">吉林</a></li>
                                            <li role="presentation" data-val="辽宁" rel="18"><a role="menuitem"
                                                                                              tabindex="-1">辽宁</a></li>
                                            <li role="presentation" data-val="内蒙古" rel="19"><a role="menuitem"
                                                                                               tabindex="-1">内蒙古</a>
                                            </li>
                                            <li role="presentation" data-val="宁夏" rel="20"><a role="menuitem"
                                                                                              tabindex="-1">宁夏</a></li>
                                            <li role="presentation" data-val="青海" rel="21"><a role="menuitem"
                                                                                              tabindex="-1">青海</a></li>
                                            <li role="presentation" data-val="山东" rel="22"><a role="menuitem"
                                                                                              tabindex="-1">山东</a></li>
                                            <li role="presentation" data-val="上海" rel="321"><a role="menuitem"
                                                                                               tabindex="-1">上海</a></li>
                                            <li role="presentation" data-val="山西" rel="23"><a role="menuitem"
                                                                                              tabindex="-1">山西</a></li>
                                            <li role="presentation" data-val="陕西" rel="24"><a role="menuitem"
                                                                                              tabindex="-1">陕西</a></li>
                                            <li role="presentation" data-val="四川" rel="26"><a role="menuitem"
                                                                                              tabindex="-1">四川</a></li>
                                            <li role="presentation" data-val="台湾" rel="397"><a role="menuitem"
                                                                                               tabindex="-1">台湾</a></li>
                                            <li role="presentation" data-val="天津" rel="343"><a role="menuitem"
                                                                                               tabindex="-1">天津</a></li>
                                            <li role="presentation" data-val="香港" rel="395"><a role="menuitem"
                                                                                               tabindex="-1">香港</a></li>
                                            <li role="presentation" data-val="西藏" rel="28"><a role="menuitem"
                                                                                              tabindex="-1">西藏</a></li>
                                            <li role="presentation" data-val="新疆" rel="29"><a role="menuitem"
                                                                                              tabindex="-1">新疆</a></li>
                                            <li role="presentation" data-val="云南" rel="30"><a role="menuitem"
                                                                                              tabindex="-1">云南</a></li>
                                            <li role="presentation" data-val="浙江" rel="31"><a role="menuitem"
                                                                                              tabindex="-1">浙江</a></li>
                                            <li role="presentation" data-val="重庆" rel="394"><a role="menuitem"
                                                                                               tabindex="-1">重庆</a></li>
                                        </ul>
                                    </div>
                                </div>
                                <div class="col-xs-4">
                                    <div class="ui-dropdown ml5">
                                        <input type="hidden" name="city" value="选择城市" class="select-val">
                                        <a class="dropdown-toggle ui-dropdown-btn int-slt-city" type="button"
                                           id="cityMenu" data-toggle="dropdown">
                                            <span class="dr-text">选择城市</span>
                                            <span class="ui-icon icon-downward-blue2 icon-downward-position"></span>
                                        </a>
                                        <ul class="dropdown-menu dropdown-pri-step city-list" role="menu"
                                            aria-labelledby="cityMenu">
                                        </ul>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="row">
                            <label class="col-xs-2 col-xs-offset-2">详细地址：</label>

                            <div class="col-xs-4">
                                <div class="ipt">
                                    <input type="text" name="address">
                                </div>
                            </div>
                        </div>
                        <div class="row">
                            <label class="col-xs-2 col-xs-offset-2">邮编：</label>

                            <div class="col-xs-4">
                                <div class="ipt">
                                    <input type="text" name="zip">
                                </div>
                            </div>
                        </div>
                    </form>
                </div>
                <div class="add-link text-center mt30">
                    <a class="ui-btn ui-btn-blue ui-btn-default mr30" id="save-add">保存</a>
                    <a class="ui-btn ui-btn-disabled ui-btn-default" onclick="window.location.reload()">取消</a>
                    <p class="fc-red add_tips f14 mt10"></p>
                </div>
            </div>
        </div>
    </div>
</div>
<!--添加地址end-->
<div class="wrap-footer">
    <div class="container footer">
        <div class="menu-nav text-center">
            <?php if(is_array($help_list)): $k = 0; $__LIST__ = $help_list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($k % 2 );++$k; if(( $k != 1)): ?><span class="menu-nav-split"></span><?php endif; ?>
            <a href="<?php echo ($vo["url"]); ?>"><?php echo ($vo["title"]); ?></a><?php endforeach; endif; else: echo "" ;endif; ?>
        </div>
        <div class="back-top">
            <img src="/images/home/back_top.png"/>
        </div>
        <div class="info mb15 text-center">
            <span>网络文化经营许可证：文网文[2010]040号</span>
            <span>值电信业务经营许可证：浙B2-20080224-1</span>
            <span>信息网络传播视听节目许可证：1109364号</span>
            <span>互联网违法和不良信息举报电话：0571-81683755</span>
        </div>
        <div class="copy mb15 text-center">
            &copy;&nbsp;&nbsp;2014 RichZoo. All rights reserved. 沪ICP备14018325号 Copyright 2014 锐祁机构
        </div>
    </div>
</div>
<?php if(empty($user_info['user_name'])): ?><!--注册-->
<div class="modal fade" id="reg_dialog" tabindex="-1" role="dialog" data-keyboard="false" data-backdrop="static" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog" id="wrap_reg_dialog">
        <div class="modal-content">
            <button class="ui-btn ui-btn-blue btn-add-close" data-dismiss="modal"onclick="window.location.reload()">x</button>
            <h1 class="add-header">新用户注册</h1>
            <div class="add-content">
                <div class="add-content-form">
                    <form class="ui-form" id="reg-form" autocomplete="off">

                        <div class="row">
                            <label class="col-xs-2 col-xs-offset-2">邮箱：</label>
                            <div class="col-xs-4">
                                <div class="ipt">
                                    <input type="text" name="email" placeholder="填写电子邮箱">
                                </div>
                            </div>
                        </div>

                        <div class="row">
                            <label class="col-xs-2 col-xs-offset-2">手机号：</label>
                            <div class="col-xs-4">
                                <div class="ipt">
                                    <input type="text" name="mobile" placeholder="填写手机号">
                                </div>
                            </div>
                        </div>

                        <div class="row">
                            <label class="col-xs-2 col-xs-offset-2">密码：</label>
                            <div class="col-xs-4">
                                <div class="ipt">
                                    <input type="password" name="password" maxlength="16" placeholder="设置密码">
                                </div>
                            </div>
                        </div>
                        <div class="row">
                            <label class="col-xs-2 col-xs-offset-2">确认密码：</label>
                            <div class="col-xs-4">
                                <div class="ipt">
                                    <input type="password" name="re_password" maxlength="16" placeholder="输入同一密码">
                                </div>
                            </div>
                        </div>
                        <div class="row">
                            <label class="col-xs-2 col-xs-offset-2">用户类型：</label>
                            <div class="form-radio col-xs-8">
                                <div class="ipt">
                                        <div class="col-xs-3">
                                            <span id="personal" class="ui-radio selected"><input type="radio" name="user_type" value="0" checked></span>个人
                                        </div>
                                        <div class="col-xs-3">
                                            <span id="company" class="ui-radio"><input type="radio" name="user_type" value="1"></span>企业
                                        </div>
                                    <span class="msg-box n-right" style="" for="user_type"><span class="msg-wrap n-error" role="alert"><span class="n-msg">类型注册后不能变更</span></span></span>
                                </div>

                            </div>
                        </div>
                        <div class="row">
                            <label class="col-xs-2 col-xs-offset-2">验证码：</label>
                            <div class="col-xs-3">
                                <div class="ipt lg-code">
                                    <input type="text" name="code" placeholder="请输入图片中的数字">
                                </div>
                            </div>
                            <div class="pull-left">
                                <div class="wrap-code">
                                    <div class="text-center pt5 ml5">
                                        <img class="code-img code-reg" src="/index/verify_code"  alt="验证码">
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="row">
                            <label class="col-xs-2 col-xs-offset-2">短信验证码：</label>
                            <div class="col-xs-3">
                                <div class="ipt lg-code">
                                    <input type="text" name="auth_code" placeholder="输入收到的验证码">
                                </div>
                            </div>
                            <a class="ui-btn ui-btn-blue btn-get-code get-code-reg">获取验证码</a>
                        </div>
                        <div class="row">
                            <label class="col-xs-2 col-xs-offset-2"></label>
                            <div class="form-radio col-xs-4">
                                <div class="ipt">
                                    <div class="col-xs-12">
                                        <span class="ui-radio check-agree"></span>
                                        阅读并同意RichZoo众筹<a href="#" class="fc-blue">《服务协议》</a>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </form>
                </div>
                <div class="add-link text-center mt30">
                    <button class="ui-btn ui-btn-blue ui-btn-default" id="register">注册</button>
                    <p class="tips mt10 fc-red f14"></p>
                </div>
            </div>
        </div>
    </div>
</div>
<!--注册end-->
<!--login s-->
<div class="modal fade" id="login_dialog" tabindex="-1" role="dialog"  data-keyboard="false" data-backdrop="static" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog" id="wrap_login_dialog">
        <div class="modal-content" id="login-wrap">
            <button class="ui-btn ui-btn-blue btn-add-close" data-dismiss="modal" id="login-close">x</button>
            <h1 class="add-header">用户登录</h1>
            <div class="add-content">
                <div class="add-content-form">
                    <form class="ui-form" id="login-form" autocomplete="off">
                        <div class="row">
                            <label class="col-xs-2 col-xs-offset-2">邮箱：</label>
                            <div class="col-xs-4">
                                <div class="ipt">
                                    <input type="text" name="username" id="username" placeholder="邮箱">
                                </div>
                                <div class="pl5 mt5" id="goto-reg">没有帐号？去注册</div>
                            </div>
                        </div>
                        <div class="row">
                            <label class="col-xs-2 col-xs-offset-2">登录密码：</label>
                            <div class="col-xs-4">
                                <div class="ipt">
                                    <input type="password" name="password" maxlength="16" id="pass" placeholder="输入登录密码">
                                </div>
                                <div class="pl5 mt5" id="link-forget">忘记密码？</div>
                            </div>
                        </div>
                        <div class="row">
                            <label class="col-xs-2 col-xs-offset-2">验证码：</label>
                            <div class="col-xs-3">
                                <div class="ipt lg-code">
                                    <input type="text" name="code" maxlength="4" placeholder="请输入图片中的数字">
                                </div>
                            </div>
                            <div class="pull-left">
                                <div class="wrap-code">
                                    <div class="text-center pt5 ml5">
                                        <img class="code-img code-login" src="/index/verify_code" alt="验证码">
                                    </div>
                                </div>
                            </div>
                        </div>
                    </form>
                    <form class="ui-form" id="login-bind-form" autocomplete="off" style="display: none">
                                    <input type="hidden" name="username" id="h-user">
                                    <input type="password" style="display: none" id="h-pass" name="password" maxlength="16" >
                        <div class="row">
                            <label class="col-xs-2 col-xs-offset-2">手机号码：</label>
                            <div class="col-xs-4">
                                <div class="ipt lg-code">
                                    <input type="text" name="mobile" id="phone"  placeholder="输入手机号码">
                                </div>
                            </div>
                            <a class="ui-btn ui-btn-blue btn-get-code get-bind-code">获取验证码</a>
                        </div>
                        <div class="row">
                            <label class="col-xs-2 col-xs-offset-2">短信验证码：</label>
                            <div class="col-xs-4">
                                <div class="ipt">
                                    <input type="text" name="code" placeholder="请填写收到验证码">
                                </div>
                            </div>
                        </div>
                    </form>
                </div>
                <div class="add-link text-center mt30 mb30" id="wrap-login">
                    <button class="ui-btn ui-btn-blue ui-btn-default" id="login-ajax">登录</button>
                    <p class="login-tips mt10 fc-red f14"></p>
                </div>
                <div class="add-link text-center mt30 mb30" id="wrap-login-bind" style="display: none">
                    <button class="ui-btn ui-btn-blue ui-btn-default" id="login-ajax-bind">绑定并登录</button>
                    <p class="login-bind-tips mt10 fc-red f14"></p>
                </div>
            </div>
        </div>
        <div class="modal-content" id="forget-wrap">
            <button class="ui-btn ui-btn-blue btn-add-close" data-dismiss="modal" onclick="window.location.reload()">x</button>
            <h1 class="add-header">找回密码</h1>
            <div class="add-content">
                <div class="add-content-form" style="padding: 40px 0 20px 0">
                    <form class="ui-form" id="forget-form" autocomplete="off">
                        <div class="row">
                            <label class="col-xs-3 col-xs-offset-2">注册邮箱：</label>
                            <div class="col-xs-4">
                                <div class="ipt">
                                    <input type="text" name="email" placeholder="注册邮箱">
                                </div>
                            </div>
                        </div>
                        <!--<div class="row">-->
                            <!--<label class="col-xs-3 col-xs-offset-2">短信验证码：</label>-->
                            <!--<div class="col-xs-3">-->
                                <!--<div class="ipt">-->
                                    <!--<input type="text" name="auth_code" placeholder="输入收到的验证码">-->
                                <!--</div>-->
                            <!--</div>-->
                            <!--<a class="ui-btn ui-btn-blue btn-get-code get-code-lost">获取验证码</a>-->
                        <!--</div>-->
                        <!--<div class="row">-->
                            <!--<label class="col-xs-3 col-xs-offset-2">新的登录密码：</label>-->
                            <!--<div class="col-xs-4">-->
                                <!--<div class="ipt">-->
                                    <!--<input type="password" name="password" placeholder="设置密码">-->
                                <!--</div>-->
                            <!--</div>-->
                        <!--</div>-->
                        <!--<div class="row">-->
                            <!--<label class="col-xs-3 col-xs-offset-2">再输入一次密码：</label>-->
                            <!--<div class="col-xs-4">-->
                                <!--<div class="ipt">-->
                                    <!--<input type="password" name="re_password" placeholder="输入同一密码">-->
                                <!--</div>-->
                            <!--</div>-->
                        <!--</div>-->
                    </form>
                </div>
                <div class="add-link text-center mt30 mb30">
                    <button class="ui-btn ui-btn-blue ui-btn-default" id="lost-ajax">提交</button>
                    <p class="lost-tips mt10 fc-red f14"></p>
                </div>
            </div>
        </div>
    </div>
</div><?php endif; ?>
<!--login e-->
<script type="text/javascript" src="/javascript/home/main.js"></script>
<?php if(($request_login == 1)): ?><script type="text/javascript">
    $('#login_dialog').modal('show');
</script><?php endif; ?>
        <script>
            $(function(){
                $("#login-close").on('click',function(){
                    var _url = window.location.href;
                    var _status=_url.indexOf('request_login');
                    if(_status == -1){
                        window.location.reload();
                    }
                });
                $("#personal").on('click',function(){
                    $("#company input[type='radio']").attr('checked',false);
                    $("#personal input[type='radio']").attr('checked',true);
                });
                $("#company").on('click',function(){
                    $("#personal input[type='radio']").attr('checked',false);
                    $("#company input[type='radio']").attr('checked',true);
                })
            })
        </script>
</body>
</html>